package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 milestone
 * 
 * @author ruoyi
 * @date 2025-02-14
 */
public class Milestone extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 截至时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截至时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 状态:0-未完成1-已完成 */
    @Excel(name = "状态:0-未完成1-已完成",width = 50)
    private String status;

    /** 任务列表，多个用，选择有依赖关系需强制用户选择 */
    @Excel(name = "任务列表，多个用，选择有依赖关系需强制用户选择",width = 60)
    private String tasks;

    /** 关联项目id */
    @Excel(name = "关联项目id")
    private Long projectId;

    /** tasksList */
    private List<Task> tasksList;

    public List<Task> getTasksList() {
        return tasksList;
    }

    public void setTasksList(List<Task> tasksList) {
        this.tasksList = tasksList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setTasks(String tasks) 
    {
        this.tasks = tasks;
    }

    public String getTasks() 
    {
        return tasks;
    }
    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("remark", getRemark())
            .append("endTime", getEndTime())
            .append("status", getStatus())
            .append("tasks", getTasks())
            .append("projectId", getProjectId())
            .toString();
    }
}
